import http from "@/utils/http"
const prefixUrl = "/outcp"
export default {
    role: {
        query: "GET:/outcp",
        create: "POST:/outcp",
        select: "GET:/outcp/:id",
        update: "PUT:/outcp/:id",
        delete: "DELETE:/outcp/:id",
    },
    query(params) {
        return http.get(prefixUrl, params)
    },
    create(params) {
        return http.post(prefixUrl, params)
    },
    select(id) {
        return http.get(prefixUrl + "/" + id)
    },
    update(id, params) {
        return http.put(prefixUrl + "/" + id, params)
    },
    delete(id) {
        return http.delete(prefixUrl + "/" + id)
    },
}